<%--
  Created by IntelliJ IDEA.
  User: 13296
  Date: 2017/7/14
  Time: 11:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page pageEncoding="UTF-8" %>
<html>
<head>
    <title>EditUser</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
    <script src="assets/jquery/jquery.min.js"></script>
    <script src="assets/bootstrap/js/bootstrap.min.js"></script>
    <style>
        .one{
            padding-top: 100px;
            height: 100%;
            margin:0 0;
            background-color: #afd9ee;
        }
    </style>
</head>
    <body>
         <div align="center" class="one">
             <p>
                 ${message}
             </p>
             <article>
                 <form action="editUser.do" method="post" accept-charset="UTF-8">
                     <p><label>&nbsp;&nbsp;&nbsp;&nbsp;ID:<input type="text" name="id" value=" ${u.id}" readonly="true" ></label></p>
                     <p>
                         <label>性别:</label>
                         <input  name="sex" type="radio" value="男" checked>男
                         <input  name="sex" type="radio" value="女" ${u.sex=='女'?'checked':''}>女
                     </p>
                     <p><label>账户:<input type="text" name="account" value=" ${u.account}" readonly="true" ></label></p>
                     <p><label>名字:<input type="text" name="name" value="${u.name}" ></label></p>
                     <p><label>电话:<input type="text" name="telephone" value="${u.telephone}" ></label></p>
                     <p><label>邮箱:<input type="email" name="email" value="${u.email}" ></label></p>
                     <p><label>地址:<input type="text" name="address" value="${u.address}" ></label></p>
                     <button type="submit" class="btn btn-primary">修改</button>
                     <!--action有searchUser和deleteUser-->
                     <a href="${action}.do?pn=${pn}&searchKey=${searchKey}" ><button type="button" class="btn btn-primary">返回</button></a>
                 </form>
             </article>

         </div>
         <%session.removeAttribute("message");%>
    </body>
</html>
